import config from 'libs/config.json'
const key = config.type + '_' + config.name;
export default [
  
    { path: '/commodity', component(resolve) { require(['@/views/commodity/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/risk', component(resolve) { require(['@/views/risk/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/setting', component(resolve) { require(['@/views/setting/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/nicegoods', component(resolve) { require(['@/views/nicegoods/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/task', component(resolve) { require(['@/views/task/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/choice', component(resolve) { require(['@/views/choice/home/index.vue'], resolve); }, meta: { appKey: key, } },

    { path: '/order', component(resolve) { require(['@/views/order/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/refundlist', component(resolve) { require(['@/views/refundlist/home/index.vue'], resolve); }, meta: { appKey: key, } },

    { path: '/productlist', component(resolve) { require(['@/views/productlist/home/index.vue'], resolve); }, meta: { appKey: key, } },
    { path: '/supplyimport', component(resolve) { require(['@/views/supplyimport/home/index.vue'], resolve); }, meta: { appKey: key, } },
    
    {
        path: '/',
        redirect: '/commodity'
    }
]
